﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="AreaList.aspx.cs" Inherits="Ewts.Project.AreaList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
<input id="hidcjoview" type="hidden" runat="server" class="cjoview" />
<input id="hidcjoauth" type="hidden" runat="server" class="cjoauth" />
<input id="hidcjoshow" type="hidden" runat="server" class="cjoshow" />
<input id="hidcjocreate" type="hidden" runat="server" class="cjocreate" />
<input id="hidprojectid" type="hidden" runat="server" />
<input id="hidareaid" type="hidden" runat="server" class="hidareaid" />
    <h2>服务点配置</h2>
          <div id="content">
            <div class="box content">
              <table id="AreaTable" cellpadding="0" cellspacing="0" class="forms" runat="server">
               <tr>
	                    <td align="right">
		                   项目名称 ：
                        </td>
                        <td>
                           <asp:label id="lblProjectName" runat="server"></asp:label>
                  </td>
                </tr>
                 <tr>
	                    <td align="right">
		                   项目编号 ：
                        </td>
                         <td>
                        <asp:label id="lblProjectNum" runat="server"></asp:label>
                 </td>
                </tr>
                 <tr>
	                    <td align="right">
		                    客户名称 ：
                        </td>
                        <td>
                        <asp:label id="lblCustomerName" runat="server"></asp:label>
                  </td>
                </tr>
                <tr>
	                    <td align="right">
		                    区域名称 ：
                        </td>
	                    <td width="*" align="left">
		                    <asp:TextBox id="txtareaName" CssClass="input" runat="server" Enabled="true"></asp:TextBox>
	                    </td>
                </tr>
                <tr>
                    <td><label>服务点选择：</label></td>
                    <td class="choose">
                        <asp:CheckBoxList ID="chkserverpoint" CssClass="csspoint" runat="server" RepeatDirection="Horizontal" 
                              RepeatColumns ="4" >
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                    <table style="width:100%;" id="tabpoint">
                    </table>
                    </td>
                </tr>
            
       <%--
                <tr style=" display:none;">
                    <td><label><span class="required">*</span>修改<%=needShowSPName%>查看业务员：</label></td>
                    <td colspan="7" class="choose">
                        <asp:CheckBoxList ID="chksalesman" runat="server" RepeatDirection="Horizontal" RepeatColumns ="8">
                        </asp:CheckBoxList>
                    </td>
                </tr>

                <tr style=" display:none;">
                 <td>z
                    <input type="hidden" id="txtid" runat="server" />
                    <label><span class="required">*</span>修改<%=needShowSPName%>开CJO人员：</label>
                  </td>
                  <td>
                      <asp:DropDownList ID="dropcjosalesman" CssClass="dropcjosalesman" runat="server" onchange="selectvalue('.dropcjosalesman option:selected','EwtsConext_chksalesman','#haveselectinput');">
                      </asp:DropDownList>
                      <input type="hidden" id="haveselectinput"/>
                  </td>
                </tr>

                <tr style=" display:none;">
                  <td>
                    <label><span class="required">*</span>修改<%=needShowSPName%>授权人员：</label>
                  </td>
                  <td>
                      <asp:DropDownList ID="droporderperson" runat="server">
                      </asp:DropDownList>
                  </td>
                </tr>
 
                 <tr style=" display:none;">
                  <td>
                    <label><span class="required">*</span>修改<%=needShowSPName%>显示人员：</label>
                  </td>
                  <td>
                      
                      <asp:RadioButtonList ID="radioupdatesalesman" runat="server" RepeatDirection="Horizontal" RepeatColumns ="8">
                      </asp:RadioButtonList>
                      
                  </td>
                </tr>--%>

                <tr>
                     <td class="paddingL">
                      <asp:Button ID="Button1"
                          runat="server" Text="添加" onclick="Button1_Click"/></td>
                </tr>
                
              </table>
            </div>
<br />
<div class="shadow">
    <asp:Repeater ID="rept" runat="server" OnItemCommand="BtnDel_Click">
      <HeaderTemplate>

    <table id="tbCustomer" class="display" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
 
      <thead>
 
        <tr>
             <th>序号</th>
             <th>区域名称</th>
             <th>服务点名称</th>
             <th>业务员</th>
             <th>开CJO人员</th>
             <th>授权人员</th>
             <th>CJO显示人员</th>
             <th>操作</th>
        </tr>
 
      </thead>
 
      <tbody>
 
  </HeaderTemplate>
 
  <ItemTemplate>
 
    <tr style=" text-align:center;">
      <td><%# Container.ItemIndex +1 %></td>
      <td><%# Eval("AreaName") %></td>    
      <td><%# Eval("ServerPointName")%></td> 
      <td><%# Eval("LookSalesmanTrueName").ToString().Replace('@', ' ')%></td> 
      <td><%# Eval("CjopersonTrueName")%></td> 
      <td><%# Eval("PowerpersonTrueName")%></td>
      <td><%# Eval("Cjoperson_show")%></td> 
      <td>
         <a href="/Project/AllocationLookSaleman.aspx?cityid=<%# Eval("pointid")%>&ServerAreaID=<%#Eval("areaid") %>">分配地址</a>&nbsp
         <a href="AreaList.aspx?id=<%# Eval("ProjectID") %>&areaid=<%#Eval("areaid") %>">编辑服务点</a>&nbsp
         <asp:LinkButton ID="LinkBtnDel" OnClientClick="return confirm('确定要删除吗?')" CommandName='<%# Eval("pointid") %>' runat="server">删除服务点</asp:LinkButton>
      </td>
    </tr>
 
  </ItemTemplate>
 
  <FooterTemplate>
 
    </tbody>
 
    </table>
 
  </FooterTemplate>


    </asp:Repeater>
</div>
 
    </div>
<script type="text/javascript" src="/js/ProjectArea.js"></script>
</asp:Content>
